home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Views / Pane Shapes / VerticalBar.h < prev   
Text File  |  2000-06-23  |  417b  |  20 lines

  1. // VerticalBar.h
  2.  
  3. #ifndef VerticalBar_h
  4. #define VerticalBar_h
  5.  
  6. #ifndef SuggestsPaneSize_h
  7. #include "SuggestsPaneSize.h"
  8. #endif
  9.  
  10. template <int32 width>
  11. class VerticalBar: public SuggestsPaneSize
  12.   {
  13.     public:
  14.         virtual int32 MinimumWidth() const                        { return width; }
  15.         virtual int32 MaximumWidth() const                        { return width; }
  16.         virtual int32 BestHeight( Range32 bound ) const        { return bound.Start(); }
  17.   };
  18.  
  19. #endif
  20.